Skip to content

Context refresh fails on reactive Cloud Foundry when using Actuator without spring-boot-health#50916

Merged
snicoll merged 2 commits into
spring-projects:4.0.xfrom
dlwldnjs1009:cf-reactive-health-absent-4.0.x
Jul 14, 2026
Merged

Context refresh fails on reactive Cloud Foundry when using Actuator without spring-boot-health#50916
snicoll merged 2 commits into
spring-projects:4.0.xfrom
dlwldnjs1009:cf-reactive-health-absent-4.0.x

Conversation

@dlwldnjs1009

Copy link
Copy Markdown
Contributor

Follow-up to #50857, which fixed the servlet Cloud Foundry actuator
auto-configuration. #50794 noted
CloudFoundryReactiveActuatorAutoConfiguration as an unverified sibling.

This PR confirms the reactive sibling with a failing test. When
spring-boot-health is absent, parsing the reactive Cloud Foundry actuator
configuration resolves ReactiveHealthEndpointWebExtension from the health
@Bean method signature, causing context refresh to fail before
/cloudfoundryapplication can be registered.

Changes

  • Move cloudFoundryReactiveHealthEndpointWebExtension into a nested
    HealthConfiguration guarded by @ConditionalOnClass(HealthEndpoint.class)

Testing

  • CloudFoundryReactiveActuatorAutoConfigurationTests.refreshSucceedsWithoutHealth (new; fails before this change)
  • CloudFoundryReactiveActuatorAutoConfigurationTests and CloudFoundryActuatorAutoConfigurationTests pass

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 4, 2026
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 14, 2026
@snicoll snicoll self-assigned this Jul 14, 2026
@snicoll snicoll added this to the 4.0.8 milestone Jul 14, 2026
dlwldnjs1009 and others added 2 commits July 14, 2026 08:37
Move the reactive Cloud Foundry health endpoint extension into a
health-specific configuration guarded by @ConditionalOnClass. When
spring-boot-health is absent, scanning the outer configuration attempts
to resolve ReactiveHealthEndpointWebExtension and causes context refresh
to fail.

See spring-projectsgh-50916

Signed-off-by: Lee JiWon <dlwldnjs1009@gmail.com>
@snicoll
snicoll force-pushed the cf-reactive-health-absent-4.0.x branch from 7d9046e to a0c8fa4 Compare July 14, 2026 09:10
@snicoll
snicoll merged commit f8e62d6 into spring-projects:4.0.x Jul 14, 2026
3 of 4 checks passed
@snicoll

snicoll commented Jul 14, 2026

Copy link
Copy Markdown
Member

Thanks again @dlwldnjs1009.

@dlwldnjs1009
dlwldnjs1009 deleted the cf-reactive-health-absent-4.0.x branch July 14, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants